/**
 * 
 */
package com.game.frame;

import java.util.Collection;

import com.game.entity.Playercharacter;

/**
 * @author lushouzhi
 *
 */
public interface PlayerManager {
	/**
	 * 
	 * @param player
	 */
	boolean addPlayer(Playercharacter player);
	
	/**
	 * 
	 * @param player
	 */
	boolean updatePlayer(Playercharacter player);
	/**
	 * 
	 * @param player
	 */
	boolean remPlayer(Playercharacter player);
	
	/**
	 * 
	 * @param uid
	 */
	boolean remPlayer(int uid);
	
	/**
	 * 
	 * @param uid
	 */
	Playercharacter getPlayer(int uid);
	
	/**
	 * 
	 */
	Collection<Playercharacter> getAllPlayers();
	
	/**
	 * 
	 */
	int getPlayerNum();
	
	/**
	 * 
	 */
	boolean closeSession(int uid);
}
